//
//  MonthView.h
//  carcareIOS
//
//  Created by ileo on 16/6/27.
//  Copyright © 2016年 chezheng. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol MonthViewDelegate <NSObject>

-(void)monthDidClickOnDate:(NSDateComponents *)dateComponents;
-(BOOL)monthHadDrivesOnDate:(NSDateComponents *)dateComponents;
-(void)monthDidShowMonth:(NSDateComponents *)dateComponents;
-(void)monthDidClickOnFlexButton;

@end

@interface MonthView : UIView

+(CGFloat)heightMax;
+(CGFloat)heightMin;

@property (nonatomic, strong) NSDate *choiceDate;//选中天


//
-(instancetype)initWithTop:(CGFloat)top choiceDate:(NSDate *)date nextestDate:(NSDate *)nextestDate lastestDate:(NSDate *)lastestDate;

@property (nonatomic, weak) id<MonthViewDelegate> delegate;

-(BOOL)canLoadLastDay;//
-(BOOL)canLoadNextDay;//

-(void)reloadData;

@end
